package com.ruoyi.cat.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 中奖记录对象 cat_winning_records
 * 
 * @author ruoyi
 * @date 2024-12-24
 */
public class CatWinningRecords extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 用户id */
    @Excel(name = "用户id")
    private Long userId;

    /** 兑换码 */
    @Excel(name = "兑换码")
    private String redemptionCode;

    /** 中奖时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "中奖时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date winningTime;

    /** 活动id */
    @Excel(name = "活动id")
    private Long activityId;

    /** 0未审核 1已审核 */
    @Excel(name = "0未审核 1已审核")
    private String whether;

    /** 审核时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "审核时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date auditTime;

    /** 审核id */
    @Excel(name = "审核id")
    private Long auditId;
    //用户名称
    private String nickName;
    //电话
    private String phone;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "结束时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date endTime;

    public Date getEndTime() {
        return endTime;
    }

    public void setEndTime(Date endTime) {
        this.endTime = endTime;
    }

    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setRedemptionCode(String redemptionCode) 
    {
        this.redemptionCode = redemptionCode;
    }

    public String getRedemptionCode() 
    {
        return redemptionCode;
    }
    public void setWinningTime(Date winningTime) 
    {
        this.winningTime = winningTime;
    }

    public Date getWinningTime() 
    {
        return winningTime;
    }
    public void setActivityId(Long activityId) 
    {
        this.activityId = activityId;
    }

    public Long getActivityId() 
    {
        return activityId;
    }
    public void setWhether(String whether) 
    {
        this.whether = whether;
    }

    public String getWhether() 
    {
        return whether;
    }
    public void setAuditTime(Date auditTime) 
    {
        this.auditTime = auditTime;
    }

    public Date getAuditTime() 
    {
        return auditTime;
    }
    public void setAuditId(Long auditId) 
    {
        this.auditId = auditId;
    }

    public Long getAuditId() 
    {
        return auditId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("userId", getUserId())
            .append("redemptionCode", getRedemptionCode())
            .append("winningTime", getWinningTime())
            .append("activityId", getActivityId())
            .append("whether", getWhether())
            .append("auditTime", getAuditTime())
            .append("auditId", getAuditId())
            .toString();
    }
}
